import { VC, Component } from '@/VC-vue'
import './done.styl'
import doneImg from './../../assets/img/done.png'

@Component({})
export default class Done extends VC {
    navigateTo(path: string) {
        this.$router.push({
            path
        })
    }

    renderResult() {
        return (
            <div class="done-container">
                <img src={doneImg} class="done-img" />
                <p class="tips">提交成功</p>
                <md-button
                    class="btn"
                    size="small"
                    type="primary"
                    onclick={this.navigateTo.bind(this, '/')}
                >
                    返回首页
                </md-button>
            </div>
        )
    }

    render() {
        return <div>{this.renderResult()}</div>
    }
}
